#ifndef MODBUSWIG_H
#define MODBUSWIG_H

#include <QWidget>

namespace Ui {
class ModbusWig;
}

class ModbusWig : public QWidget
{
    Q_OBJECT

public:
    int key;  //唯一键值
    int type;  //数据点类型
    int result;//成功标志
    QString val;
    void doJSON(QByteArray payload);
    void reJSON(QByteArray payload);
    explicit ModbusWig(QWidget *parent = 0);
    ~ModbusWig();


private:
    Ui::ModbusWig *ui;
public slots:
   void dataUpSlot(QByteArray payload);

private slots:

   void on_winBtnop_clicked();
   void on_winBtncl_clicked();
   void on_smokeBtn_clicked();
   void on_pushButton_clicked();
};

#endif // MODBUSWIG_H
